# $NetBSD: Makefile,v 1.7 2012/10/03 15:09:52 asau Exp $
#

DISTNAME=		mc-4.1.40-pre9
PKGNAME=		mc-mp-4.1.39.99.9
PKGREVISION=		1
CATEGORIES=		sysutils
MASTER_SITES=		http://mc.linuxinside.com/Releases/
LICENSE=		gnu-gpl-v2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://mc.linuxinside.com/cgi-bin/dir.cgi
COMMENT=		Midnight Commander clone

CONFLICTS+=		mc-[0-9]*

USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake
INSTALL_MAKE_FLAGS+=	INSTALL_PROGRAM=${INSTALL_SCRIPT:Q}

CONFIGURE_ARGS+=	--disable-nls

REPLACE_PERL+=		vfs/extfs/a vfs/extfs/deb vfs/extfs/mailfs

REPLACE_INTERPRETER+=	bash
REPLACE.bash.old=	/bin/bash
REPLACE.bash.new=	${SH}
REPLACE_FILES.bash=	vfs/extfs/iso

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Linux"
PLIST_SUBST+=		IF_LINUX=""
.else
PLIST_SUBST+=		IF_LINUX="@comment "
.endif

.include "../../mk/bsd.pkg.mk"
